import pixellib
from pixellib.semantic import semantic_segmentation
import time
segment_image = semantic_segmentation()
segment_image.load_pascalvoc_model("deeplabv3_xception_tf_dim_ordering_tf_kernels.h5")
start = time.time()
segment_image.segmentAsPascalvoc("test.jpg", output_image_name = "new1.jpg", overlay = True)
end = time.time()
print(f"Inference Time: {end-start:.2f}seconds")
